package com.hst.capacity.domain.model.entity.order.base;

import com.hst.capacity.domain.model.entity.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 订单状态变化记录表基类
 */
@Data
@MappedSuperclass
public class BaseOrderStatusHistoryEntity extends BaseEntity {

    @Id
    @GeneratedValue(generator = "gen_uuid")
    @GenericGenerator(name = "gen_uuid", strategy = "uuid")
    private String idOrderStatusHistory;
    //订单编号（不能用系统，要自己拼接订单号）
    private String idOrder;
    //订单状态
    private Integer status;
    //订单信息记录
    private String memo;

}
